package com.helloworld.chat.dao;

import com.helloworld.chat.entity.FriendRequest;

import java.util.List;

/**
 * Created by xdzy on 2017/6/29.
 */
public interface FriendRequestDao {
    void addFriendRequest(FriendRequest friendRequest);
    FriendRequest getFriendRequest(int id);
    FriendRequest getFriendRequest(int senderId,int receiveId);
    List<FriendRequest> getFriendRequestList(int uid);
    List<FriendRequest> getMyFriendRequestList(int uid);
    List<FriendRequest> getReceiveFriendRequestList(int uid);
    int getRequestCount(int uid);
    void deleteRequest(int id);
}
